package com.qdxwx.data.service.order;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.company.Company;
import com.qdxwx.models.order.Order;
import com.qdxwx.models.order.OrderAllotDetail;
import com.qdxwx.models.order.OrderDetail;
import com.qdxwx.models.user.User;

import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface OrderAllotDetailService {

    int insert(OrderAllotDetail allotDetail);

    OrderAllotDetail get(int id);

    List<OrderAllotDetail> getList(OrderAllotDetail allotDetail, PageRequest page);

    List<OrderAllotDetail> getListByOrderNo(String orderNo);

    int count(OrderAllotDetail allotDetail);

    void create(Order order, User user, int rate, int amount, String desc);

    void create(Order order, Company company, int rate, int amount, String desc);

    void create(OrderDetail order, User user, int rate, int amount, String desc);

    void create(OrderDetail order, Company company, int rate, int amount, String desc);

    void create(int orderId, String orderNo, int payAmount, int accountType, long accountId, String accountName, int rate, int amount, String desc);

    int updateCombine(long userId1, long userId2);
}
